import os
#快捷键导入option+回车
keyword="657659694"
size =100 * 1024 * 1024
start_dir="/Users/wangxiaoyan60/PycharmProjects/wangxiaoyan-homework/day8"

# for cur_path,dirs,files in os.walk(start_dir):
#     for file in files:
#         full_path=os.path.join(cur_path,file)
#         if file.endswith(keyword):
#             print("查找到文件，目录是%s"% cur_path)
#             break

for cur_path,dirs,files in os.walk(start_dir):
    for dirs in dirs:
        full_path=os.path.join(cur_path,dirs)
        if keyword==dirs:
            print("查找到文件，目录是%s"% cur_path)
            break